
sampler TextureSampler : register(s0);

struct VertexShaderInput
{
    float4 Position     : POSITION0;
    float2 TexCoords    : TEXCOORD0;
};

struct VertexShaderOutput
{
    float4 Position     : POSITION0;
    float2 TexCoords    : TEXCOORD0;
};

VertexShaderOutput VertexShaderFunction(VertexShaderInput input)
{
    VertexShaderOutput output;

    output.Position = input.Position;
    output.TexCoords = input.TexCoords;

    return output;
}

float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0
{
    return tex2D(TextureSampler, input.TexCoords);
}

technique Technique1
{
    pass Pass1
    {
        VertexShader = compile vs_2_0 VertexShaderFunction();
        PixelShader = compile ps_2_0 PixelShaderFunction();
    }
}
